<?php

class User {
	public $id;
	public $username;
	public $fullname;
	public $password;
	public $email;
	public $role;
	
	static public function create($username, $fullname, $password, $email, $role = null) {
		$self = new User();
		$self->username = $username;
		$self->fullname = $fullname;
		$self->password = $password;
		$self->email = $email;
		$self->role = $role;
		return $self;
	}
}